package com.zhixing.web.service.impl;

import com.zhixing.web.api.dataobject.entity.Rotation;
import com.zhixing.web.repository.RotationRepository;
import com.zhixing.web.service.RotationService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author dzh
 * @version 1.0.0.05020
 * <p>project: d-blog</p>
 * <p>created time: 2022/05/05 15:32</p>
 * <p>describe: 首页轮播图信息逻辑实现层</p>
 * <p>remarks: </p>
 **/
@Service
public class RotationServiceImpl implements RotationService {


    @Resource
	private RotationRepository rotationRepository;


    @Override
    public List<Rotation> getRotationList(Rotation rotation) {

        return rotationRepository.findAll(rotation);
    }
}
